import request from '@/utils/request'

export const syslogin = (data) => {
  return request.post('/sys/login', data
  )
}

// export const syslogin = (data) => {
//   return request({
//     url: '/sys/login',
//     method: 'post',
//     data
//   })
// }

// 获取用户基本信息
export const sysProfile = () => {
  return request.post(
    '/sys/profile'

  )
}

// 员工基本消息2

export const sysuser = (id) => {
  return request(`/sys/user/${id}`)
}

// export const sysProfile = () => {
//   return request({
//     url: '/sys/profile',
//     method: 'post',
//     headers: {
//       Authorization: `Bearer ${store.state.user.token}`
//     }
//   })
// }
